// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill';
import Vue from 'vue';
import App from './App';
import router from './router';

//引入mint-ui
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
Vue.use(MintUI);

//引入vuex
import store from './store';

//创建全局对象传递信息
export default Event = new Vue();

// 引入全局jquery
require("expose-loader?$!jquery");

//引入自定义指令
import './directive/index';

//引入better-scroll
// import BScroll from 'better-scroll';

Vue.config.productionTip = false;

import Loading from './components/loading';
Vue.use(Loading);

/* eslint-disable no-new */
new Vue({
    el: '#app',
    Event,
    router,
    store,
    template: '<App/>',
    components: { App }
})